﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web.UI.WebControls;
using System.ComponentModel;
namespace DalatCooking.Core.Web.Controls
{
    public class ImageAd : WebControl
    {
        protected override void Render(System.Web.UI.HtmlTextWriter writer)
        {
            string html = "<img src=\"" + ImgSrc + "\" title=\"" + Title + "\" width=\"" + Width + "px\" height=\"" + Height + "px\"/>";
           
            writer.Write(html);
          //  base.Render(writer);
        }
        protected override void OnPreRender(EventArgs e)
        {
            
        }
        public string ImageID { get; set; }
       
        public string ImgSrc { get; set; }
        public string Url { get; set; }
        public string Title { get; set; }
    }
}
